home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 301 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: hyppy.systemy.it!usenet
  2. From: sintesi@orion.it
  3. Newsgroups: comp.lang.c
  4. Subject: HELP! - Borland PowerPack + Mouse
  5. Date: Tue, 02 Jan 1996 10:41:45 GMT
  6. Organization: Systemy Network s.r.l.
  7. Message-ID: <4cb1oc$2k0@hyppy.systemy.it>
  8. NNTP-Posting-Host: usr8.orion.it
  9. Keywords: PowerPack Extender Mouse
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Hi all,
  13.  
  14. We are porting a real-mode application written in Borland C 3.11 
  15. to Borland 4.51 + PowerPack and we have some problems managing DOS and
  16. BIOS function calls in protected mode. For example mouse driver
  17. functions.
  18.  
  19. This is the real-mode code to change the mouse shape.
  20.  
  21. static int CursorMask[16][2] =
  22. {0x3fff,0x1fff,0xfff,0x7ff,0x3ff,0x1ff,0xff,0x7f,0x3f,0x3f,0x3f,0x1ff,0x20ff,0xe0ff,0xf0ff,0xf0ff,
  23. 0,0x8000,0xc000,0xe000,0xf000,0xf800,0xfc00,0xfe00,0xff00,0xff80,0xd800,0x8c00,0xc00,0x600,0x600,0};
  24.  
  25. void MouseCursor(void)
  26. {
  27.     _AX = 0x09;
  28.     _BX = 0;
  29.     _CX = 0;
  30.     _ES = FP_SEG(CursorMask);
  31.     _DX = FP_OFF(CursorMask);
  32.     geninterrupt(0x33);
  33. }
  34.  
  35. QUESTION: Which is the equivalent protected-mode (32 bit) code ?
  36.  
  37. Thanks in advance for any help.
  38.                                                
  39. Sintesi - Modena - Italy
  40.  
  41.  
  42.  
  43.  
  44.